from rest_framework.views import APIView
from rest_framework.response import Response

from utils.tencent.term_key import TemporaryKey

from rest_framework import status


class CredentialView(APIView):
    def get(self, *args, **kwargs):
        data = TemporaryKey()
        return Response(data, status=status.HTTP_201_CREATED)
